package com.fausto.learnimprint.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fausto.learnimprint.core.model.entity.Discuss;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author fausto
 * @since 2022-03-28
 */
@Mapper
@Repository
public interface DiscussMapper extends BaseMapper<Discuss> {

    /**
     * 获取最新六条评论
     */
    List<Discuss> findLatest(@Param("count") Integer count);
}
